package edu.sctu.practice.class02.zengguangchuan.test17;

/**
 * Created by lenovo0 on 2015/11/5.
 */
public class Car extends Auto {
    boolean Aircondition;
    boolean CD;

    public Car(int tires, String color, int load, int speed, boolean Aircondition, boolean CD) {
        super(tires, color, load, speed);
        this.Aircondition = Aircondition;
        this.CD = CD;
    }

    public void upSpeed() {
        System.out.println("加速");
    }

    public void downSpeed() {
        System.out.println("减速");
    }

    public void getInfo() {
        System.out.println("轮胎数：" + tires + "");
        System.out.println("颜色：" + color + "");
        System.out.println("车身重量：" + load + "");
        System.out.println("速度：" + speed + "");
        System.out.println("有空调：" + Aircondition + "");
        System.out.println("有CD：" + CD + "");
    }
}